package sk.fhi.shared.model;

import java.io.Serializable;

import javax.persistence.Id;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * Abstract entity for storing in GAE datastore
 * 
 * @author Michal Somora
 *
 */
public abstract class AbstractEntity implements Serializable, IsSerializable {

	@Id
	public Long id;
	
	public AbstractEntity() {
	}
	
	public AbstractEntity(Long id) {
		super();
		this.id = id;
	}

	public Long getId() {
		return id;
	}
	
	public abstract String getDisplayName();
}
